Skip to content

Add Helm chart for coraza-caddy#55

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-helm-chart-for-coraza-caddy
Draft

Add Helm chart for coraza-caddy#55
Copilot wants to merge 2 commits intomainfrom
copilot/add-helm-chart-for-coraza-caddy

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 24, 2026

Adds a Helm chart for coraza-caddy — Caddy server with the Coraza WAF plugin — following the same structure and conventions as the existing coraza-spoa chart.

Chart structure

  • configmap.yaml — stores the Caddyfile; mounted at /etc/caddy/
  • deployment.yaml — runs caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
  • service.yaml — exposes HTTP port (default 8080, named http)
  • Standard supporting templates: serviceaccount, hpa, pdb, servicemonitor

Key design decisions vs. coraza-spoa

coraza-caddy coraza-spoa
Config format Raw Caddyfile string (caddyfile:) Structured YAML (config:)
Primary port 8080 (http) 9000 (spoa)
Metrics port 2019 (Caddy admin API, disabled by default) 9100 (enabled by default)
Config mount /etc/caddy/ /etc/coraza/

Default Caddyfile

Ships with OWASP CRS enabled out of the box:

{
    order coraza_waf first
}

:8080 {
    coraza_waf {
        load_owasp_crs
        directives `
            Include @coraza.conf-recommended
            Include @crs-setup.conf.example
            Include @owasp_crs/*.conf
            SecRuleEngine On
        `
    }
}

The port value (default 8080) controls the Kubernetes Service port and must be kept in sync with the listen address in the Caddyfile.

Tests

Nine Helm template unit tests cover deployment, service, configmap, and HPA rendering — consistent with the existing coraza-spoa_test.go pattern.

Copilot AI linked an issue Apr 24, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/corazawaf/charts/sessions/36182748-59b7-4b55-aaa6-fda604e3324d

Co-authored-by: fzipi <3012076+fzipi@users.noreply.github.com>
Copilot AI changed the title [WIP] Add helm chart for coraza-caddy Add Helm chart for coraza-caddy Apr 24, 2026
Copilot AI requested a review from fzipi April 24, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add helm chart for coraza-caddy

2 participants